const radio = require('./03-radio')

const station = {
  freq: '123',
  name: 'Jams'
};

const theRadio = new radio(station)

theRadio.on('play',()=>{
  console.log('paly:',theRadio.station);
})

theRadio.on('stop',()=>{
  console.log('stop:',theRadio.station);
})

theRadio.play()

setTimeout(()=>{
  theRadio.stop()
},1000)